package com.jeeplus.modules.guide.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * ClassName: AppointmentTime
 * Function:  预约日期
 * Date:      2021/6/8 22:24
 *
 * @author hanKongbin
 * version    V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("预约时间")
public class ServiceTime {

    @ApiModelProperty("日期")
    private String time;

    @ApiModelProperty("周几")
    private String week;

    @ApiModelProperty("名额")
    private int quota;

    @ApiModelProperty("时间点信息")
    private List<Detail> details;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Detail {

        @ApiModelProperty("时间段字符串，例：（10:00-11:00）")
        private String timePeriodStr;

        @ApiModelProperty("时间段，例：（10）")
        private Integer timePeriod;

        @ApiModelProperty("名额")
        private int quota;
    }
}
